package cn.appinfodb.dao.devuser;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.appinfodb.pojo.AppCategory;
import cn.appinfodb.pojo.DataDictionary;
import cn.appinfodb.pojo.DevUser;
import cn.appinfodb.pojo.Info;


public interface DevUserMapper {
	/**
	 * ͨ��devCode��ȡUser
	 * @param devCode
	 * @return
	 * @throws Exception
	 */
	public DevUser getLoginUser(@Param("devCode")String devCode)throws Exception;
	
	/**
	 * App列表
	 */
	public List<Info> getInfoList
                      (@Param(value="softwareName")String querySoftwareName,
                       @Param(value="status")Integer queryStatus,
                       @Param(value="flatformId")Integer queryFlatformId,
                       @Param(value="categoryLevel1")Integer queryCategoryLevel1,
                       @Param(value="categoryLevel2")Integer queryCategoryLevel2,
                       @Param(value="categoryLevel3")Integer queryCategoryLevel3,
                       @Param(value="devId")Integer devId,
                       @Param("from")Integer currentPageNo, 
                       @Param("pageSize")Integer pageSize)throws Exception;
	public int getInfoCount
	                     (@Param(value="softwareName")String querySoftwareName,
			              @Param(value="status")Integer queryStatus,
			              @Param(value="flatformId")Integer queryFlatformId,
			              @Param(value="categoryLevel1")Integer queryCategoryLevel1,
			              @Param(value="categoryLevel2")Integer queryCategoryLevel2,
			              @Param(value="categoryLevel3")Integer queryCategoryLevel3,
			              @Param(value="devId")Integer devId)throws Exception;
	
	
	public int add(Info appinfo)throws Exception;
	
	public List<DataDictionary> getDataDictionaryList(@Param("typeCode")String typeCode)throws Exception;
	public List<AppCategory> getAppCategoryByparentId(@Param("parentId")Integer parentId)throws Exception;
	
}